package li;
import java.util.ArrayList;
import java.util.Iterator;

import org.omg.PortableInterceptor.Interceptor;

public class demo16 {
	public static void main(String args[]){
		ArrayList list=new ArrayList<>();
		list.add(new Byte((byte)1));
		list.add(new Double((double)60.00));
		
		Iterator i=list.iterator();
		while(i.hasNext()){
			System.out.println(i.next());
		}
		int len=list.size();
		for(int n=0;n<len;n++){
			System.out.println(list.get(n));
			
		}
	}

}
